package com.iflytek.aisol.audit.iflytek.strategy.manage.common.enums;

import lombok.Getter;

/**
 * 响应码
 *
 * @author lxchen12
 * @date 2024-02-27 16:52:34
 */
@Getter
public enum RCode {

    SUCCESS("000000", "请求成功", "请求成功,%s"),

    FILE_UPLOAD_ERROR("200001", "文件上传失败","文件上传失败,%s"),
    //REPEATED_LOGICAL_SYMBOLS("200002", "词内容格式有问题","不能有连续的逻辑符,%s"),

    FILE_CONVERT_ERROR("800003", "文件内容转换错误","文件内容转换错误,%s"),
    // TODO 细化并和审核错误码统一？
    UNKNOWN_ERROR("999999", "未知错误", "未知错误,%s"),
    HINT_ERROR("999998", "不支持的操作", "%s"),

    REMOTE_CALL_ERROR("800000", "调用远程服务异常", "调用%s服务异常,%s"),
    RESULT_FAIL_ERROR("800001", "远程服务响应结果异常", "远程服务%s响应结果异常,%s"),
    REMOTE_SOURCE_ERROR("800002", "调用远程服务异常", "%s引擎客户端不存在"),

            ;

    private final String code;

    private final String desc;

    private final String descFormat;

    RCode(String code, String desc, String descFormat) {
        this.code = code;
        this.desc = desc;
        this.descFormat = descFormat;
    }

}
